﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EFCore.IBLL;
using EFCore.Entity;
using EFCore.IDAL;
using Microsoft.Practices.Unity;

namespace EFCore.BLL
{
   public class Log4netBll:BaseBll<Log4net>
   {
       protected ILog4netDal dal;

       public Log4netBll()
       {
           dal = Container.Resolve<ILog4netDal>();
       }

       public Log4netBll(ILog4netDal dal) : base(dal)
       {
           this.dal = dal;
       }

       public List<Log4net> GetAll()
       {
           var res = dal.GetQueryable();
           var reslist = res.ToList<Log4net>();
           return reslist;
       }
   }
}
